using Godot;
using System;

public partial class Teleporter : Interactable
{
    [Export]
	public string EnterPoint;
	[Export]
	public string path;
	public Game Game;
	private Main main;
	public override void _Ready()
	{
		base._Ready();
	}
    public override void Interact()
    {
        base.Interact();
		var Game = GetNode<Game>("/root/Game");
		GD.Print("切换场景");
		Game.change_scene(path,EnterPoint);
	}
}
